#!/usr/bin/python
#-*- coding: utf-8 -*-
#
# Copyleft 2011 Orcun Avsar <orc.avs@gmail.com>
#
# GNU General Public Licence (GPL)
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


import os
import sys
import unittest


CURRENT_PATH = os.path.dirname(__file__)
sys.path.insert(0, CURRENT_PATH)


from tests import test_threads
from tests import test_signal


if __name__ == '__main__':
  suite = unittest.TestSuite()
  suite.addTests([
      test_threads.get_suite(),
      test_signal.get_suite(),
  ])

  if not '--skip-qt' in sys.argv:
    from tests import test_qtsignal
    suite.addTests([
        test_qtsignal.get_suite()
    ])

  unittest.TextTestRunner().run(suite)
